﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;
using System.Data;

namespace BUS
{
    public class BOPHANBUS
    {
        public int update(DataTable datatable,string sqlquery)
        {
            BOPHANDAO bpDAO = new BOPHANDAO();
            return bpDAO.update(datatable,sqlquery);
        }

        public int thembophan(BOPHANDTO bpDTO)
        {
            BOPHANDAO bpDAO = new BOPHANDAO();
            int kq = bpDAO.thembophan(bpDTO);
            return kq;
        }
        public DataTable Loadbophan()
        {
            DataTable datatble = new DataTable();
            BOPHANDAO bpDAO = new BOPHANDAO();
            datatble = bpDAO.Loadbophan();
            return datatble;
        }
    }
}
